#include <stdio.h>
int main ()
{
   int n =0;
   scanf("%d",&n);
   int s =1,sum=1;
   for(int i=2;i<=n;i++)
   {
    s*=10;
    s+=i;
    sum+=s;
   }
   printf("s=%d",sum);

   return 0;
}